package com.dnjn.happiness.emo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dnjn.happiness.emo.domain.EmoTeamAvgScoreHistory;
import com.dnjn.happiness.emo.mapper.EmoTeamAvgScoreHistoryMapper;
import com.dnjn.happiness.emo.service.IEmoTeamAvgScoreHistoryService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 团队历史每日平均值 留180天数据?Service业务层处理
 *
 * @author happiness
 * @date 2023-10-28
 */
@Service
public class EmoTeamAvgScoreHistoryServiceImpl extends ServiceImpl<EmoTeamAvgScoreHistoryMapper, EmoTeamAvgScoreHistory> implements IEmoTeamAvgScoreHistoryService {

    @Override
    public List<EmoTeamAvgScoreHistory> currenDeptHistoryAvgScore(String startTime, String endTime, Long deptId) {
        return baseMapper.currenDeptHistoryAvgScore(startTime,endTime,deptId);
    }

    @Override
    public void deleteHistoryByDaysAgo(String delFlag) {
        baseMapper.deleteHistoryByDaysAgo(delFlag);
    }
}
